jQuery(function($){
	var mySwiper = new Swiper('.banner>.swiper-container', {
        direction: 'horizontal',
        loop: false,
        resistanceRatio: 0.75
    })
	var mySwiper = new Swiper('.index_shangjia1>.swiper-container', {
        autoplay: 2000,
        direction :'vertical',
        loop:true
    })
	
	var mySwiper = new Swiper('.hd_list_top>.swiper-container', {
        direction :'horizontal',
        onSlideChangeEnd: function(swiper) {
			$('.index_list_title span i').removeClass('active').eq(mySwiper.activeIndex).addClass('active')
		}
    })
	
	$('.index_list_title span').click(function() {
		$('.active').removeClass('active')
		$(this).addClass('active')
		mySwiper.slideTo($(this).index(), 500, true)
	})
});


